package com.example.spring2.pk7;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.yaml.snakeyaml.external.com.google.gdata.util.common.base.UnicodeEscaper;

import java.util.List;
import java.util.Map;

@Data
//@Configuration(proxyBeanMethods = false)
@ConfigurationProperties
public class CollectionConfig {
    private List<MyServer> servers;  // 对应配置文件的servers  服务器配置项
    private Map<String, User> users;  // 对应配置文件中的users 用户配置项
    private String [] names;  // 对应配置文件的names

    //@Data
}
